package com.cmict.data.form.api.convert;

import com.cmict.data.form.api.task.dto.FormBaseDTO;
import com.cmict.data.form.api.task.dto.SysFormDTO;
import com.cmict.data.form.api.task.dto.SysFromSeachDataVoDTO;
import com.cmict.data.form.api.entity.dataobject.SysFormDO;
import com.cmict.data.form.api.entity.vo.SysFromSeachDataVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;
import java.util.Set;

@Mapper
public interface SysFormConvert {

    SysFormConvert INSTANCE = Mappers.getMapper(SysFormConvert.class);


    SysFormDTO convert (SysFormDO bean);

    FormBaseDTO convert01 (SysFormDO bean);

    List<SysFormDTO> convertList(List<SysFormDO> formList);

    List<FormBaseDTO> convertList01(List<SysFormDO> formList);
    SysFromSeachDataVo convertSeach (SysFromSeachDataVoDTO sysFromSeachDataVo);

    Set<SysFormDTO> convertSet(Set<SysFormDO> sysFormByForm);
}
